﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QLGame.aspx.cs" Inherits="QuickGame.View.QLGame" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>
    Danh sách lượt chơi
    </h2>
    <div style="height: 700px">
        
       
        
        <dx:ASPxGridView ID="grvds" runat="server" AutoGenerateColumns="False" 
            style="margin-left: 83px; margin-top: 56px" Width="765px" 
            KeyFieldName="ID" onstartrowediting="grvds_StartRowEditing">
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0" Width = "30px">
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn FieldName="ID" Visible="False" VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn Caption="Thời gian" FieldName="Ngay" 
                    VisibleIndex="2">
                    <propertiesdateedit displayformatstring="dd/MM/yyyy hh:mm" 
                        editformat="DateTime"></propertiesdateedit>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn Caption="Người chơi" FieldName="NguoiChoi" 
                    VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Tiền thưởng ( $)" FieldName="Diem" Width = "100px"
                    VisibleIndex="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Trạng thái" FieldName="TrangThai" Width = "100px"
                    VisibleIndex="5" ReadOnly="True">
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsBehavior AllowFocusedRow="True" />
            <settingspager numericbuttoncount="20" pagesize="20">
            </settingspager>
            <Settings ShowFilterRow="True" />
            <SettingsDetail ShowDetailRow="True" />
            <Templates>
                <DetailRow>
                    <dx:ASPxGridView ID="grvChiTiet" runat="server" AutoGenerateColumns="False" 
            style="margin-left: 13px; margin-top: 5px" Width="772px" onload="grvChiTiet_Load">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="ID" Visible="False" VisibleIndex="0">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Cấp độ" FieldName="CapDo" VisibleIndex="1" Width ="50">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Câu hỏi" FieldName="CauHoi" Width ="300"
                    VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Câu trả lời" FieldName="CauTraLoi" Width ="250"
                    VisibleIndex="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataCheckColumn Caption="Đúng/sai" FieldName="KetQua" Width ="50"
                    VisibleIndex="5">
                </dx:GridViewDataCheckColumn>
                <dx:GridViewDataDateColumn Caption="Thời gian" FieldName="Ngay" Width ="150"
                    VisibleIndex="2">
                    <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy hh:mm" 
                        EditFormat="DateTime">
                    </PropertiesDateEdit>
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn Caption="Trợ giúp" FieldName="TroGiup" 
                    VisibleIndex="6" Width ="80">
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsPager NumericButtonCount="14" PageSize="14">
            </SettingsPager>
        </dx:ASPxGridView>
                </DetailRow>
            </Templates>
        </dx:ASPxGridView>
        
       
        
    </div>
</asp:Content>
